package org.common.config;


import lombok.Data;
import org.springframework.cloud.context.config.annotation.RefreshScope;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 读取nacos的配置
 */
@RefreshScope
@Data
@Component
public class NacosConfig {

    @Value("${pattern.name}")
    private String name;
}
